//处理attributeList
export function doAttributeList(val){
    let reg1 = /([^\{\,]*)\:/g
    let reg2 = /\[(.*?)\]/g
    const arr =[]
    while(true){
        const r= reg1.exec(val)
        const r2= reg2.exec(val)
        if(!r)break
        arr.push({
            key: r[1],
            value: r2[1].split(',')
        })
    }
    return arr

}

